package com.liaowei.user.openfeign;

import com.liaowei.common.BaseResponse;
import com.liaowei.model.domain.Tag;
import com.liaowei.user.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "system-service",configuration = OpenFeignConfig.class)
public interface TagClient {

    // 根据标签id集合查询标签列表
    @GetMapping("/systems/tags/count/ids")
    BaseResponse<Integer> countTagByIds(@RequestBody List<Long> tagIdList);

    // 根据id查询标签列表
    @PostMapping("/systems/tags/list")
    BaseResponse<List<Tag>> tagList(@RequestBody List<Long> tagIdList);
}
